package com.jbit.dm212.service.impl;

import com.github.yulichang.toolkit.JoinWrappers;
import com.jbit.dm212.entity.dto.DmAreaDTO;
import com.jbit.dm212.mapper.DmAreaMapper;
import com.jbit.dm212.service.DmAreaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class DmAreaServiceImpl implements DmAreaService {
    @Resource
    private DmAreaMapper dmAreaMapper;
    @Override
    public List<DmAreaDTO> getAreas() {
        return dmAreaMapper.selectJoinList(DmAreaDTO.class, JoinWrappers.lambda());
    }
}
